
import { GameView } from './gameView/GameView';
import { GameCtrl } from './GameCtrl';

const { ccclass, property } = cc._decorator;

@ccclass('Gamescene')
export class GameScene extends cc.Component {
 
   // @property(cc.Prefab)pokerPrefab:cc.Prefab=null; 
   // @property(cc.Node)pokerContainer:cc.Node=null;
    @property(cc.Prefab)gameViewPrefab:cc.Prefab=null;

    private m_GameCtrl:GameCtrl=null;
    private m_GameView:GameView=null;

    start () {
        //this.laber_.string='这是游戏场景~~~';

        this.m_GameCtrl=new GameCtrl();
        this.m_GameView=cc.instantiate(this.gameViewPrefab).getComponent(GameView);
        this.node.addChild(this.m_GameView.node);
       // this.pokerPrefab.active=false;
        this.m_GameCtrl.Init(this.m_GameView);
        this.m_GameCtrl.start();    
         
    }
    
   
}

